const proxy = require('http-proxy-middleware')
const os = require("os")
module.exports = function (app){
    // baseUrl = 'http://localhost:8085'
    baseUrl ='http://47.92.30.112:7777'
    app.use(
        proxy('/api',{
            target:baseUrl,
            changeOrigin:true,
            // pathRewrite:{'^/api':''} //当baseUrl切换为bds1时候这一行需要注释掉
            

        })
        
    )
}